From: Alexandru Ardelean Date: Wed, 13 Aug 2025 14:43:38 +0000 (+0300) Subject: django: allow test.sh only for python3-django package X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=12738a8eec8c28978599b9c11c61fb5b481799bf;p=feed%2Fpackages.git django: allow test.sh only for python3-django package No idea how this worked before. But the '/usr/bin/django-admin' is available only for python3-django Signed-off-by: Alexandru Ardelean --- diff --git a/lang/python/django/test.sh b/lang/python/django/test.sh index b6e9a1ed68..6204b89325 100644 --- a/lang/python/django/test.sh +++ b/lang/python/django/test.sh @@ -1,5 +1,7 @@ #!/bin/sh +[ "python3-django" = "$1" ] || exit 0 + GOT_VER=$(/usr/bin/django-admin version) [ "$GOT_VER" = "$2" ] || { echo "Incorrect version: expected '$2' ; obtained '$GOT_VER'"